package smarthouse.ejb;

import javax.ejb.Remote;

import smarthouse.dto.HouseDTO;

/**
 * @author Sergiu
 *
 */
@Remote
public interface HouseDAORemote {

	/**
	 * Get house by Id
	 * 
	 * @param id
	 * @return
	 */
	HouseDTO getHousebyId(int id);

	/**
	 * Insert house
	 * 
	 * @param user
	 * @return
	 */
	boolean addHouse(HouseDTO user);

	/**
	 * Update house data
	 * 
	 * @param user
	 * @return
	 */
	boolean updateHouse(HouseDTO user);

	/**
	 * Remove house
	 * 
	 * @param id
	 * @return
	 */
	boolean removeHouse(int id);

}
